import deviceRequest from '@/utils/deviceRequest'
// 长势
export const getDeviceApi = (params) =>
  deviceRequest.get(
    `/collect_data/listByEchars?startTime=${params.startTime}&endTime=${params.endTime}`
  )
// 土壤
export const getSoilDeviceApi = (params) =>
  deviceRequest.get(
    `/soilData/ECharsList?startTime=${params.startTime}&endTime=${params.endTime}`
  )
// 气象
export const getWeatherDeviceApi = (params) =>
  deviceRequest.get(`
/weather/ECharsList?startTime=${params.startTime}&endTime=${params.endTime}`)
// 图片page /picture/page
export const getPicturePage = (params) =>
  deviceRequest.get(`
/picture/page?current=${params.current}&pageSize=${params.pageSize}`)
// 图片删除 /picture/removeByIds
export const delPicture = (ids) =>
  deviceRequest.delete(`
/picture/removeByIds?ids=${ids}`)
